/**
 * 
 */
package javapop.framework.generic;

import javapop.framework.generic.tool.GrammarVisitor;

/**
 * @author hakim
 *
 */
public class GMaybeOrDefault extends GMaybe {

	private String fctDefault;
	
	/**
	 * @param string 
	 * @param gParser 
	 * 
	 */
	public GMaybeOrDefault(GParser gParser, String string) {
		super(gParser);
		this.fctDefault = string;
	}

	@Override
	public <T,R,E extends Exception> T visit(GrammarVisitor<T,R, E> g) throws E {
		return g.visit(this);
	}

	
	/**
	 * @return the fctDefault
	 */
	public String getFctDefault() {
		return fctDefault;
	}

}
